import request from "../utils/request";

// 用户登录
export const getLogin = (params) => request.post("/personalCenter/login", params)
// 微信小程序授权登录获取-openid + session_key用于解密手机号
export const loginWechat = (params) => request.post(`/personalCenter/loginWechat`, params)

// 微信小程序授权登录-解密手机号
export const decryptPhone = (params) => request.post(`/personalCenter/decryptPhone`, params)
// 退出登录
export const logout = (id) => request.get(`/personalCenter/logout/${id}`)
// 设置密码
export const passwordSet = (params) => request.post(`/personalCenter/password/set`, params)